tests: Remove extra $CMD_PREFIX from test-auto-summary.sh
authorDan Nicholson <nicholson@endlessm.com>
Fri, 13 May 2016 18:38:50 +0000 (11:38 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 27 Jun 2016 20:20:21 +0000 (20:20 +0000)
$OSTREE already has $CMD_PREFIX in it, so adding it again causes you to
call env twice with LD_PRELOAD.

Closes: #372
Approved by: cgwalters

tests/test-auto-summary.sh

index 6039f5269242006242bcb598b39cb8d6baebbd61..96fc068b87dd02d844e5d7eeb1b83c122ffc82a8 100755 (executable)
@@ -31,30 +31,30 @@ mkdir test
 
 echo hello > test/a
 
-${CMD_PREFIX} $OSTREE commit -b test -s "A commit" test
+$OSTREE commit -b test -s "A commit" test
 echo "ok commit 1"
 
-${CMD_PREFIX} $OSTREE summary --update
+$OSTREE summary --update
 
 OLD_MD5=$(md5sum repo/summary)
 
 echo hello2 > test/a
 
-${CMD_PREFIX} $OSTREE commit -b test -s "Another commit" test
+$OSTREE commit -b test -s "Another commit" test
 echo "ok commit 2"
 
 assert_streq "$OLD_MD5" "$(md5sum repo/summary)"
 
-${CMD_PREFIX} $OSTREE --repo=repo config set core.commit-update-summary true
+$OSTREE --repo=repo config set core.commit-update-summary true
 
 echo hello3 > test/a
 
-${CMD_PREFIX} $OSTREE commit -b test -s "Another commit..." test
+$OSTREE commit -b test -s "Another commit..." test
 echo "ok commit 3"
 
 assert_not_streq "$OLD_MD5" "$(md5sum repo/summary)"
 
 # Check that summary --update deletes the .sig file
 touch repo/summary.sig
-${CMD_PREFIX} $OSTREE summary --update
+$OSTREE summary --update
 assert_not_has_file repo/summary.sig